package com.longxi.tianjintianbao.utils;

import java.util.List;

/**
 * Created by 70339 on 2018/5/22.
 * 代码无八阿哥
 * 阿弥陀佛
 * 横排缺口填充
 * 没用了
 */
public class GapFillUtils<T> {
    public List<T> add(List<T> list, T k, int SPAN_COUNT){
        int all = list.size();
        int y = all % SPAN_COUNT;
        if(y < SPAN_COUNT){
            for (int i = 0; i < SPAN_COUNT - y; i++){
                list.add(k);
            }
            return list;
        }
        return list;
    }
}
